# -*- coding: utf-8 -*-
class policyIfmComPage():
    def __init__(self,driver):
        self.driver=driver
    # 保单信息确认
    def btnPolicyIfmCom(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[2]/div[1]/div/div/ul/li[1]/ul/li/ul/li[1]/div')
    # 保单号
    def inpPolicyNo(self):
        return self.driver.find_element_by_xpath('//*[@id="searchBar"]/div[1]/div/div[1]/div[2]/div/input')
    # 任务获取
    def btnPolicyGet(self):
        return self.driver.find_element_by_xpath('//*[@id="searchBar"]/div[3]/button[1]')
    # 彈框確認按鈕
    def btnSubmit(self):
        return self.driver.find_element_by_xpath('/html/body/div[2]/div/div[3]/button')
    def btnSubmit1(self):
        return self.driver.find_element_by_xpath('/html/body/div[2]/div/div[3]/button[2]')
    # 下发问题件弹框确认按钮
    def btnSubmit2(self):
        return self.driver.find_element_by_xpath('/html/body/div[3]/div/div[3]/button')
    # 目標數據
    def TargetData(self):
        return self.driver.find_elements_by_class_name('table_block')[0]
    # 通過
    def btnPass(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/button')
#     核保待處理
    def btnUWfllowup(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[2]/div[1]/div/div/ul/li[1]/ul/li/ul/li[3]')
    def btnQuery(self):
        return self.driver.find_element_by_xpath('//*[@id="searchBar"]/div[2]/button[2]')
    # 承保
    def btninsured(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[3]/div[2]/button[1]')

    '''
    拒保处理操作步骤
    '''
    # 添加问题件
    def btnAdd_project(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/div/div[2]/button')
    # 问题件代码
    def inpProjectCode(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[1]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/div/input')
    # 选择问题件
    def secProjectCode(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[1]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/div/div[1]/input')
    # 核保意见
    def inpUWidea(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[3]/div[1]/div/input')
    # 拒保
    def btnDrop(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[3]/div[2]/button[3]')
#     拒保原因
    def inpDropreson(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[3]/div[2]/div/div/div[2]/form/div[1]/div/div/div[1]/input')
    def btnHealth(self):
        return self.driver.find_element_by_xpath('/html/body/div[4]/div[1]/div[1]/ul/li[1]')
    def btnFinancial(self):
        return self.driver.find_element_by_xpath('/html/body/div[4]/div[1]/div[1]/ul/li[2]')
    def btnProfessional(self):
        return self.driver.find_element_by_xpath('/html/body/div[4]/div[1]/div[1]/ul/li[3]')
    def btnRisk(self):
        return self.driver.find_element_by_xpath('/html/body/div[4]/div[1]/div[1]/ul/li[4]')
    def btnOther(self):
        return self.driver.find_element_by_xpath('/html/body/div[4]/div[1]/div[1]/ul/li[5]')
    def inpOtherReson(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[3]/div[2]/div/div/div[2]/form/div[2]/div/div/input')
    # 温馨提示确认
    def btnSumbit4(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[3]/div[2]/div/div/div[3]/div/button[2]')
#     核保复核
    def btnRecheck(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[2]/div[1]/div/div/ul/li[1]/ul/li/ul/li[6]')
    # 核保复核结论
    def inpRecheckResult(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[2]/div[1]/div[2]/div/div/div/div[1]/div/div/input')
    # 通过
    def btnPassone(self):
        return self.driver.find_element_by_xpath('/html/body/div[2]/div[1]/div[1]/ul/li[1]')
    # 退回
    def btnReturned(self):
        return self.driver.find_element_by_xpath('/html/body/div[2]/div[1]/div[1]/ul/li[2]')
    def btnRecheckSubmit(self):
        return self.driver.find_element_by_xpath('//*[@id="app"]/div/div[4]/div/div/div[2]/div[2]/div[3]/button[1]')
    def btnRecheckSubmit1(self):
        return self.driver.find_element_by_xpath('/html/body/div[3]/div/div[3]/button[2]')






